package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/findUser")
    public List<User> findUser(){

        return userService.findAll();
    }
    /**
     * 需求：查询全部user表数据
     * 请求类型：get /post/put/delete
     * 路径：/findUser
     * 参数：无
     * 返回值：List<User>
     */
}
